package org.p2psimulator.entity.protocol.messages.gnutella.xrep;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class XrepTrueVoteReply  extends Message{

	public XrepTrueVoteReply(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}
	private boolean vote;

	private Id voteReplyId;

	public boolean isVote() {
		return vote;
	}
	public void setVote(boolean vote) {
		this.vote = vote;
	}
	public Id getVoteReplyId() {
		return voteReplyId;
	}
	public void setVoteReplyId(Id voteReplyId) {
		this.voteReplyId = voteReplyId;
	}
	public String getName(){
		return MessageTypes.XREP_TRUEVOTEREPLY.getName();
	}
	@Override
	public MessageTypes getMessageType() {
		return MessageTypes.XREP_TRUEVOTEREPLY;
	}
}
